#!/bin/sh

 if [ -f "/usr/lib/mono/monolite.version" ]; then 
    rm -rf /usr/bin/mono
    rm -rf /usr/bin/mono-sgen

    rm -rf /usr/lib/mono/4.5/mscorlib.dll
    rm -rf /usr/lib/mono/4.5/mcs.exe

    rm -rf /usr/lib/mono/gac/I18N.Other
    rm -rf /usr/lib/mono/gac/I18N.West
    rm -rf /usr/lib/mono/gac/Microsoft.CSharp
    rm -rf /usr/lib/mono/gac/Mono.Posix
    rm -rf /usr/lib/mono/gac/Mono.Data.Tds 
    rm -rf /usr/lib/mono/gac/Mono.Http
    rm -rf /usr/lib/mono/gac/System  
    rm -rf /usr/lib/mono/gac/System.Core 
    rm -rf /usr/lib/mono/gac/System.Configuration 
    rm -rf /usr/lib/mono/gac/System.Configuration.Install 
    rm -rf /usr/lib/mono/gac/System.Data 
    rm -rf /usr/lib/mono/gac/System.Data.DataSetExtensions 
    rm -rf /usr/lib/mono/gac/System.Data.Entity 
    rm -rf /usr/lib/mono/gac/System.Data.OracleClient 
    rm -rf /usr/lib/mono/gac/System.Dynamic 
    rm -rf /usr/lib/mono/gac/System.Management 
    rm -rf /usr/lib/mono/gac/System.Messaging 
    rm -rf /usr/lib/mono/gac/System.Net 
    rm -rf /usr/lib/mono/gac/System.Net.Http 
    rm -rf /usr/lib/mono/gac/System.Net.Http.Formatting 
    rm -rf /usr/lib/mono/gac/System.Net.Http.WebRequest 
    rm -rf /usr/lib/mono/gac/System.Transactions 
    rm -rf /usr/lib/mono/gac/System.Xml 
	
	rm -rf /usr/lib/mono
	
	ldconfig
	source ~/.bash_profile
	
	echo 'OK'
	
 else
  printf 'not install monolite!\n'
 fi